package com.atguigu.springcloud.service;

import com.atguigu.springcloud.service.hystriximpl.PaymentServiceHystrixImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;

@Service
@FeignClient(value = "cloud-provider-hystrix-payment",fallback = PaymentServiceHystrixImpl.class)
public interface PaymentService {
	
	@GetMapping("/payment/ok")
	public String paymentInfo_ok();
	
	@GetMapping("/payment/timeout")
	public String paymentInfo_timeout();
}
